package com.ttn.student.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ttn.common.core.entity.studentrecord.LearningProgressTimeRecord;
import com.ttn.student.mapper.LearningProgressTimeRecordMapper;
import com.ttn.student.service.LearningProgressTimeRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class LearningProgressTimeRecordServiceImpl extends ServiceImpl<LearningProgressTimeRecordMapper, LearningProgressTimeRecord> implements LearningProgressTimeRecordService {
    @Resource
    private LearningProgressTimeRecordMapper learningProgressTimeRecordMapper;


    @Override
    public int getTodayStudyTime(int studentId) {
        return learningProgressTimeRecordMapper.getTodayStudyTime(studentId);
    }
}
